package com.yimi.yinhepda.adapter.RecycleAdapter;

import android.content.Context;

import com.yimi.yinhepda.R;
import com.pda.ym.base.CommonRecycleAdapter;
import com.pda.ym.base.CommonViewHolder;
import com.yimi.yinhepda.entity.bean.ManualAddEntity;

import java.util.List;

/**
 * @author: lj
 * Date: 2018/12/24
 * Description:移库装卸手动添加运单适配器
 */
public class MoveStockManualAddAdapter extends CommonRecycleAdapter<ManualAddEntity> {

    public MoveStockManualAddAdapter(Context context, List<ManualAddEntity> dataList) {
        super(context, dataList, R.layout.activity_add_childbillway_listviewitem);
    }

    @Override
    public void bindData(CommonViewHolder holder, ManualAddEntity data, int position) {
        holder.setText(R.id.sequencynum, (position + 1) + "");
        holder.setText(R.id.waybillnum, data.getWaybillNo());
        holder.setText(R.id.childwaybillnum, data.getChildWaybillNo());
    }
}
